package LesThreads;

public class ThrCalc extends Thread {
	private Nombres nomb;

	public ThrCalc(Nombres nomb) {
		this.nomb = nomb;
	}

	public void run() {
		try {
			while (!interrupted()) {
				nomb.calcul();
				sleep(5);
			}
		} catch (InterruptedException e) {
		}
	}

}
